<% for(o in obj){
%>
<tr data-tt-id="${o.id}" data-tt-parent-id="${o.parentId}" data-tt-branch="${o.hasChildren}">
    <td>
        <span class="pd-l-sm"></span>${o.name!}
    </td>
    <td>${o.address!}</td>
    <td>${o.telephone!}</td>
    <td>
        <div class="btn-group">
            <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                <i class="ti-settings"></i>
                <span class="ti-angle-down"></span>
            </button>
            <ul class="dropdown-menu" role="menu">
                <li><a href="${base}/platform/sys/unit/detail/${o.id}" data-toggle="modal"
                       data-target="#dialogUnitDetail">查看</a></li>
                <li><a href="${base}/platform/sys/unit/edit/${o.id}" data-pjax>修改</a></li>
                <%if(@shiro.getPrincipalProperty('unitid')!=o.id){%>
                <li><a href="javascript:;" onclick="del('${o.id}')">删除</a></li>
                <%}%>
                <li class="divider"></li>
                <li><a href="${base}/platform/sys/unit/add?pid=${o.id}" data-pjax>添加子单位</a></li>

            </ul>
        </div>
    </td>
</tr>
<%
}%>